import React, { Suspense } from 'react';
import ReactDOM from 'react-dom';  
import './statics/css/base.less';
import App from './App';
import axios from 'axios'; 
import 'lib-flexible' 
import {
  request,
  response
} from './api/httpInterceptor'
axios.interceptors.request.use(request)
axios.interceptors.response.use(response);

/***
 * react.Suspense是配合lazy界面懒加载使用的
 */
ReactDOM.render(
  <Suspense fallback={<div>Loading... </div>}>
  <App />
  </Suspense>
  ,
  document.getElementById('root')
);

